package com.kxn.multi.module.service.dto.api.mq;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("事务消息请求体")
@Data
public class TransactionMessageParam {

    @ApiModelProperty(value = "消息内容")
    @NotBlank(message = "消息内容不能为空")
    private String message;

    @ApiModelProperty(value = "消息状态")
    @NotNull(message = "消息状态,1:commit, 2:rollback, 0:unknown")
    private Integer status;

}
